package com.biao.mall.cart.config;

import com.biao.mall.cart.vo.UserInfoTo;

public class ThreadLocalConfig {
    public static ThreadLocal<UserInfoTo> threadLocal = new ThreadLocal<>();

    public static void set(UserInfoTo userInfoTo){
        threadLocal.set(userInfoTo);

    }

    public static UserInfoTo get(){
      return   threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }
}
